/*
 * Copyright (C) 2007 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cn.android.stk;

import android.app.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;


////////////////////////////////////
import com.android.internal.telephony.gsm.stk.AppInterface;
private AppInterface mStkService;

/**
 * Launcher class. Serve as the app's MAIN activity, send an intent to the
 * StkAppService and finish.
 *
 */
public class StkLauncherActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

//        Bundle args = new Bundle();
//Toast.makeText(StkLauncherActivity.this,"1",Toast.LENGTH_SHORT).show();
//        args.putInt(StkAppService.OPCODE, StkAppService.OP_LAUNCH_APP);
//Toast.makeText(StkLauncherActivity.this,"2",Toast.LENGTH_SHORT).show();
//        startService(new Intent(this, StkAppService.class).putExtras(args));
//Toast.makeText(StkLauncherActivity.this,"success",Toast.LENGTH_SHORT).show();


        //finish();
        
        
        
        //////////////////////////
        mStkService = com.android.internal.telephony.gsm.stk.StkService
        .getInstance();
        Log.i("mystk", "mStkService="+mStkService);
    }
}
